
import 'dart:convert';

List<ProgramType> programTypeFromJson(String str) => List<ProgramType>.from(
    json.decode(str).map((x) => ProgramType.fromJson(x)));

String programTypeToJson(List<ProgramType> data) =>
    json.encode(List<dynamic>.from(data.map((x) => x.toJson())));

class ProgramType {
  ProgramType({
    this.displayName,
    this.orderNumber,
    this.programName,
    this.programId,
  });

  String? displayName;
  int? orderNumber;
  String? programName;
  String? programId;

  factory ProgramType.fromJson(Map<String, dynamic> json) => ProgramType(
        displayName: json["displayName"],
        orderNumber: json["orderNumber"],
        programName: json["programName"],
        programId: json["programId"],
      );

  Map<String, dynamic> toJson() => {
        "displayName": displayName,
        "orderNumber": orderNumber,
        "programName": programName,
        "programId": programId,
      };
}
